package com.flyme.module.auth.client.constants;

/**
 * @author: zyf
 * @date: 2018/11/2 18:15
 * @description:
 */
public class AuthConstants {
    // token名称定义
    public  static final  String ACCESS_TOKEN_KEY="access_token";
    public  static final  String ACCESS_TOKEN_NAME="value";
    // token有效期，默认12小时
    public static final  int ACCESS_TOKEN_VALIDITY_SECONDS = 60 * 60 * 128;
    // token有效期，默认7天
    public static final int REFRESH_TOKEN_VALIDITY_SECONDS = 60 * 60 * 24 * 7;


    /**
     * 第三方登录(pc)
     */
    public static final String LOGIN_WEIBO = "pcweibo";
    public static final String LOGIN_QQ = "pcqq";
    public static final String LOGIN_WECHAT = "pcwechat";

    /**
     * 自定义第三方登录请求头
     */
    public static final String HEADER_X_THIRDPARTY_LOGIN = "X-ThirdParty-Login";
}
